package com.project.bookstore.order.service;

import com.project.bookstore.common.CommonResult;
import com.project.bookstore.order.pojo.OrderCreateVO;
import com.project.bookstore.order.pojo.OrderDetailDO;
import com.project.bookstore.order.pojo.OrderDetailVO;
import com.project.bookstore.order.pojo.OrderMultiConditionDTO;

import java.util.HashMap;
import java.util.List;

public interface OrderService {
    //多条件查询订单
    CommonResult<List<OrderDetailVO>> orderMultiCondition(Long userId, OrderMultiConditionDTO conditionDTO);

    //订单列表
    CommonResult<List<OrderDetailVO>> orderList(Long userId);

    //统计订单状态
    CommonResult<HashMap<String, Integer>> countState(Long id);

    //创建订单
    CommonResult createOrder(OrderCreateVO orderCreateVO);

    List<OrderDetailVO> orderDetailDOToVO(List<OrderDetailDO> orderDO);
}
